if (args.nodeId) {
	var document = search.findNode("workspace://SpacesStore/"+args.nodeId);
}else {
	var document = companyhome.childByNamePath(args.nodePath)
}
var result=false;
try
{	
	result = document.remove();
}
catch(err)
{
	
}
if(result==false)
	model.result="false";
else 
	model.result="true";